package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

/**
 * @Classname DishService
 * @Description TODO
 * @Version 1.0.0
 * @Date 2024/6/23 19:55
 * @Created by Ren
 */
public interface DishService {

    //新增菜品
    void addDish(DishDTO dishDTO);

    //菜品分页查询
    PageResult queryPage(DishPageQueryDTO dishPageQueryDTO);

    void deleteBatch(List<Long> ids);

    DishVO getDishWithFlavorById(Long id);

    void updateDishWithFlavorById(DishDTO dishDTO);

    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);

    /**
     * 根据id修改菜品的起售或者停售
     * @param status
     * @param id
     */
    void startOrStop(Integer status, Long id);
}
